home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / fabgrouptable.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2009-10-28  |  2KB  |  35 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from base.g import *
  5. from PyQt4.QtCore import *
  6. from PyQt4.QtGui import *
  7.  
  8. class FABGroupTable(QTableWidget):
  9.     
  10.     def __init__(self, parent):
  11.         QTableWidget.__init__(self, parent)
  12.         self.db = None
  13.  
  14.     
  15.     def setDatabase(self, db):
  16.         self.db = db
  17.  
  18.     
  19.     def dragMoveEvent(self, e):
  20.         item = self.itemAt(e.pos())
  21.         e.ignore()
  22.  
  23.     
  24.     def dropMimeData(self, row, col, data, action):
  25.         items = unicode(data.data(u'text/plain')).split(u'|')
  26.         self.emit(SIGNAL('namesAddedToGroup'), row, items)
  27.         return False
  28.  
  29.     
  30.     def mimeTypes(self):
  31.         return QStringList([
  32.             u'text/plain'])
  33.  
  34.  
  35.